/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package domain.Entity;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author jorge
 */
@Entity
@Table(name = "gestor")
public class EntityGestor extends EntityUsuario implements Serializable {
 
    @OneToMany(targetEntity=domain.Entity.EntityProyecto.class, mappedBy = "eg",cascade = CascadeType.REMOVE)
    private Collection epy;
    @OneToMany(targetEntity=domain.Entity.EntityTrabajador.class, mappedBy = "eg",cascade = CascadeType.REMOVE)
    private Collection etr;

    public Collection getEpy() {
        return epy;
    }

    public void setEpy(Collection epy) {
        this.epy = epy;
    }

    public Collection getEtr() {
        return etr;
    }

    public void setEtr(Collection etr) {
        this.etr = etr;
    }
   
   
    public EntityGestor() {
    }
    
    

}
